//
//  UserViewController.m
//  iWeddingDirectory
//
//  Created by apple on 7/16/12.
//  Copyright (c) 2012 Home. All rights reserved.
//

#import "UserViewController.h"

@interface UserViewController ()

@end

@implementation UserViewController
@synthesize name,username,email,phone,country,state,city,zip,address,url,registered;
@synthesize user;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.title = @"User detail";
    
    name.text = user.name;
    username.text = user.username;
    email.text = user.email;
    phone.text = user.phone;
    country.text = user.country;
    city.text = user.city;
    state.text = user.state;
    zip.text = user.zip;
    address.text = user.address;
    url.text = user.url;
    registered.text = user.registered;

    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

-(void) dealloc
{
    [user release];
    [super dealloc];
}

@end
